<%@ include file="../common/IncludeTop.jsp"%>
<div id="Content">
<div id="BackLink">
	<a href="main">Return to Main Menu</a>
</div>

<div id="Catalog">

<h2>${sessionScope.category.name}</h2>
<!-- 用sessionScope将该请求的查询结果(某个对象)的属性值放到session里面，使其在一个对话周期内能够保存-->
	<!--查询两类：category的类型以及product-->
<table>
	<tr>
		<th >Product ID</th>
		<th >Name</th>
	</tr>
	<c:forEach var="product" items="${sessionScope.productList}">
		<tr>
			<td id="td1">
				<a id="aaa" href="viewProduct?productId=${product.productId}">${product.productId}</a>
			</td>
			<td id="td2">${product.name}</td>
		</tr>
	</c:forEach>
</table>

</div>
</div>
<%@ include file="../common/IncludeButtom.jsp"%>


